package com.fankui.serviceedu.client;

import com.fankui.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * ClassName VodClient
 * Description TODO
 * Date 2023/11/29 15:20
 *
 * @Author 范奎
 * @Since JDK 11
 */
@FeignClient(name = "service-vod", fallback = VodDegradeFeignClient.class)
@Component
public interface VodClient {

    @DeleteMapping("/vodservice/removeVodVideo/{vodId}")
    R removeVodVideo(@PathVariable("vodId") String vodId);

    @DeleteMapping("/vodservice/removeVodVideoList")
    R removeVodVideoList(@RequestParam("vodIdList") List<String> vodIdList);
}
